<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>三列布局2</title>
</head>
<!-- 实现三列布局的方式？(假设高度已知，请写出三栏布局，其中左右宽度各为300px，中间自适应) -->
<style>
  * {
    margin: 0;
    padding: 0;
  }
  html,body {
    width: 100%;
    height: 100%;
  }
  .container{
    display: flex;
    height: 100%;
  }
  .left{
      float: left;
      width: 200px;
      height: 100%;
      background-color: pink;
  }
  .center{
      height: 100%;
      background-color: powderblue;
      flex: 1;
  }
  .right{
      float: right;
      width: 200px;
      height: 100%;
      background-color: pink;
  }

</style>
<body>
  <div class="container">
    <div class="left"></div>
    <div class="center"></div>    
    <div class="right"></div>
  </div>
</body>
</html>